package com.medata.service.impl;

import com.medata.dataObject.UserRole;
import com.medata.repository.UserRoleRepository;
import com.medata.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：zb
 * @date ：Created in 2019/3/22 0022 16:49
 * @description：
 */
@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private UserRoleRepository userRoleRepository;

    @Override
    public UserRole findByRoleId(Integer id) {
        UserRole userRole = userRoleRepository.findByRoleId(id);
        return userRole;
    }
}
